﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>网上考勤统计</title>
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/date.format.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Fckeditor/fckeditor.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(
        new StyleSheet { ExtensionType = ExtensionType.ListBox }
    )
    @Html.DevExpress().GetScripts(
         new Script { ExtensionType = ExtensionType.ListBox }
    )
    <style>
        span
        {
            font-weight: blod;
        }
    </style>
</head>

<script type="text/javascript">
    if (top.boardtop) top.boardtop.head_txt.innerText = "网上考勤统计";

</script>

<body style="font-size: 12px;">
    @using (Html.BeginForm("Save", "Attendance", FormMethod.Post, new { id = "form1" }))
    {
        
        
@* <table width="975" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr>
                    <td align="center">
                        可选择须查询人员的部门：
                        <select name="dept_id" id="DeptNo">
                            @{List<SelectListItem> itemList = ViewData["deptItemList"] as List<SelectListItem>;
                              string deptNo = ViewData["deptNo"] == null ? "" : ViewData["deptNo"].ToString();
                              foreach (SelectListItem item in itemList)
                              {
                                  if (deptNo == item.Value)
                                  {
                                <option selected value="@item.Value">@item.Text</option>
                                  }
                                  else
                                  {
                                <option value="@item.Value">@item.Text</option>
                                  }

                              }
                      
                            }
                        </select>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="button" name="btnQuery" id="btnQuery" value="查 询" class="bottom" onclick="query()" />
                    </td>
                </tr>
                </table>
        *@
        
        
        <div>
            <table width="400" align="center">
                <tr>
                    <td align="right">
                        </td>
                    <td align="left">
                        @Html.DevExpress().ComboBox(settings =>
{
    settings.Name = "dw";
    settings.Properties.TextField = "Text";
    settings.Properties.ValueField = "Value";
    settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
}).BindList(ViewData["dw"]).Bind(ViewData["chooseDeptNo"].ToString()).GetHtml()
                    </td>
                    <td align="left">
                        @Html.DevExpress().ComboBox(settings =>
{
    settings.Name = "yyyy";
    settings.Properties.TextField = "Text";
    settings.Properties.ValueField = "Value";
    settings.Properties.DropDownStyle = DropDownStyle.DropDownList;

}).BindList(ViewData["yyyy"]).Bind(ViewData["chooseYear"].ToString()).GetHtml()
                    </td>
                    <td align="left">
                        @Html.DevExpress().ComboBox(settings =>
{
    settings.Name = "mm";
    settings.Properties.TextField = "Text";
    settings.Properties.ValueField = "Value";
    settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
}).BindList(ViewData["mm"]).Bind(ViewData["chooseMonth"].ToString()).GetHtml()
                    </td>
                    <td align="left">
                        <input type="submit" value="查询" name="submit">
                    </td>
                </tr>
            </table>
        </div>

        <div>
            <table width='99%' border='0' align='center' cellspacing='0' bordercolordark='#ffffff'
                bordercolorlight='#000000' cellpadding='4'>
                <tr>
                    <td align="center">
                        @ViewData["chooseYear"] 年 @ViewData["chooseMonth"] 月 人员外出和网上考勤情况</td>
                </tr>
                <tr>
                    <td align="center">
                        @Html.Raw(ViewData["htmlstr"].ToString())
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        说明：“◎”表示正常假日，“√”表示全部出勤，“<strong>*</strong>”代表当日有人员外出情况，◆请假一整天，▲请假半天，△上午上班迟到(未签到)，▽下午下班早退(未签退) 把鼠标移到非正常出勤标记下会显示具体原因。当日情况由于考勤没有完成故不作准。
                    </td>
                </tr>
            </table>
        </div>
    }
</body>
</html>
